import { createApp } from "vue";
// import './style.css'
import "@/assets/less/index.less";
import router from "@/router";

//这里ElementPlus我们使用完整引入
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";

//注册@element-plus/icons-vue图标
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

// 注册pinia
import { createPinia } from "pinia";

import "@/api/mock.js";

import App from "./App.vue";

// 创建pinia实例
const pinia = createPinia();

const app = createApp(App);

app.use(pinia);

app.use(ElementPlus);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

app.use(router);

app.mount("#app");
